Skip to content

Conversation

@joncinque
Copy link
Contributor

Problem

Some of the CI jobs time out or fail because there's too much disk space used by the build.

Summary of changes

Take a hammer to the problem, and just don't emit debug info. On my machine, this reduces the build size from 21GB to 4.1GB for the rust legacy build, which always runs into issues.

We don't have to adopt this option, so let me know what you prefer! I did also try debug = "line-tables-only" and that reduced the build to 9.7GB.

#### Problem

Some of the CI jobs time out or fail because there's too much disk space
used by the build.

#### Summary of changes

Take a hammer to the problem, and just don't emit debug info. On my
machine, this reduces the build size from 21GB to 4.1GB for the rust
legacy build, which always runs into issues.
samkim-crypto
samkim-crypto previously approved these changes Nov 4, 2025
@samkim-crypto
Copy link
Contributor

I am happy either way. If debug = "line-tables-only" is sufficient, then should we lean towards this? It seems like this does give some useful logs: if a test panics, we still get some useful stack trace (e.g., panicked at assertion failed, src/main.rs:10:5). If we do debug = false, then I think the CI logs don't give line numbers on errors.

@joncinque
Copy link
Contributor Author

Oh that's a good point, I'll go to "line-tables-only" then, thanks!

@joncinque joncinque changed the title repo: Add debug = false to dev profile to reduce build size repo: Add debug = "line-tables-only" to dev profile to reduce build size Nov 4, 2025
@joncinque joncinque merged commit 3a200ff into solana-program:main Nov 5, 2025
36 checks passed
@joncinque joncinque deleted the nodebug branch November 5, 2025 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants